package com.gupaoedu.pattern.strategy;


/**
 * 2019/9/28
 * created by chenpp
 */
public class ItineraryCancelStrategy implements Strategy {

    public FlightReturn flightReturn(Double price) {
        String msg = "因为行程变更,取消航班，退还90%金额:RMB "+price*0.9+".";
        FlightReturn flightReturn = new FlightReturn(price*0.9,msg);
        return flightReturn;
    }
}
